package com.bianmin.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

@Data
public class Article {
    private Integer id;             //id
    private String userId;          //用户id
    private String title;           //标题
    private String content;         //内容
    private String pics;            //图片
    private String createTime;      //创建时间
    private Integer topEndTime;     //置顶结束时间
    @TableField(exist = false)
    private String nickName;        //用户昵称
    @TableField(exist = false)
    private String icon;            //用户头像
    @TableField(exist = false)
    private String collectionId;   //有id代表被收藏
    @TableField(exist = false)
    private Integer collectionCount; //文章收藏数量
    @TableField(exist = false)
    private boolean onTop = false;  //是否为置顶，默认是false
}

